package cn.gailvlun.gll.net.base;

import com.google.gson.annotations.SerializedName;
import java.util.Date;

import cn.gailvlun.gll.net.apartment.room.Room;
import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
import io.realm.annotations.RealmField;



public class Profile extends RealmObject {
    @PrimaryKey
    private int id;
    private String token;
    private String refresh_token;
    private String avatar;
    private RealmList<String> user_permissions;
    private String gaiid;
    private String uid;
    private String name;
    private String mobile;
    private Date date_joined;
    private boolean gender;
    private boolean activated;
    @RealmField(name="is_mobile_bind")
    @SerializedName(value = "is_mobile_bind")
    private boolean mobile_bound;
    private String city;
    private String birthday;
    private String description;
    private RealmList<String> groups;
    private int country_code;
    private RealmList<Room> invites;
    private Boolean is_friend;
    private Boolean is_profile_public=true;

    public Boolean getIs_friend() {
        return is_friend;
    }

    public void setIs_friend(Boolean is_friend) {
        this.is_friend = is_friend;
    }

    public RealmList<Room> getInvites() {
        return invites;
    }

    public void setInvites(RealmList<Room> invites) {
        this.invites = invites;
    }

    private Date expiredTime; 

    public Date getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Date expiredTime) {
        this.expiredTime = expiredTime;
    }

    public int getCountry_code() {
        return country_code;
    }

    public void setCountry_code(int country_code) {
        this.country_code = country_code;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public RealmList<String> getUser_permissions() {
        return user_permissions;
    }

    public void setUser_permissions(RealmList<String> user_permissions) {
        this.user_permissions = user_permissions;
    }

    public String getGaiid() {
        return gaiid;
    }

    public void setGaiid(String gaiid) {
        this.gaiid = gaiid;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getDate_joined() {
        return date_joined;
    }

    public void setDate_joined(Date date_joined) {
        this.date_joined = date_joined;
    }

    public boolean isGender() {
        return gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

    public boolean isActivated() {
        return activated;
    }

    public void setActivated(boolean activated) {
        this.activated = activated;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public RealmList<String> getGroups() {
        return groups;
    }

    public void setGroups(RealmList<String> groups) {
        this.groups = groups;
    }

    public boolean is_mobile_bound() {
        return mobile_bound;
    }

    public void set_mobile_bound(boolean mobile_bound) {
        this.mobile_bound = mobile_bound;
    }

    public Boolean getIs_profile_public() {
        return is_profile_public;
    }

    public void setIs_profile_public(Boolean is_profile_public) {
        this.is_profile_public = is_profile_public;
    }
}
